﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Abp.EntityFramework;
using Camc.Duct.Authorization.Users;
using Camc.Duct.Customer;
using Camc.Duct.ProduceTask;

namespace Camc.Duct.ProduceTask
{
	public class Order:FullAuditedEntity<long>
	{
		public Order()
		{
		}

		public string PicNo { set; get; }

		public string TaskNo { set; get; }

		public string Name { set; get; }

		public int Amount { set; get; }

		public string Size { set; get; }

		public DateTime DeliveryTime { set; get; }

		public OrderState State { set; get; }

		public string Materials { set; get; }

		public string Technician { set; get; }

		public string Auditor { set; get; }

		public DateTime AuditTime { set; get; }

		public string Remark { set; get; }

		public bool IsUrgency { set; get; }

		public Contact Customer { set; get; }

		[ForeignKey("Customer")]
		public int CustomerId { set; get; }

		public ICollection<SpecialTool> SpecialTools { set; get; }
		public ICollection<Process> Processes { set; get; }

		public ICollection<ProductLog> ProductLogs { set; get; }
	}
}
